package com.ali.spring.security.oauth2.server.service.impl;

import com.ali.spring.security.oauth2.server.domain.TbPermission;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.ali.spring.security.oauth2.server.mapper.TbPermissionMapper;
import com.ali.spring.security.oauth2.server.service.TbPermissionService;

import java.util.List;

/**
 * @author :ali
 * @date   :2020/1/26 18:55
 * @description：${description}
 * @modified By:
 * @version: 1.0.0
 */

@Service
public class TbPermissionServiceImpl implements TbPermissionService{

    @Resource
    private TbPermissionMapper tbPermissionMapper;

    @Override
    public List<TbPermission> selectByUserId(Long id) {
        return tbPermissionMapper.selectByUserId(id);
    }
}
